package com.hyg.lib_base.mainUtils.TypeFaceUtil;

import android.os.Parcel;
import android.os.Parcelable;

public class TypeFaceData implements Parcelable {
    /*   设置全局字体改变的 数据类型   */

    private String ChineseName = "";
    private String FileName  = "";
    private String FilePath = "";

    public TypeFaceData(String ChineseName, String FilePath){
        this.ChineseName = ChineseName;
        this.FilePath = FilePath;
    }

    public TypeFaceData(String ChineseName, String FileName, String FilePath){
        this.ChineseName = ChineseName;
        this.FileName = FileName;
        this.FilePath = FilePath;
    }

    protected TypeFaceData(Parcel in) {
        ChineseName = in.readString();
        FileName = in.readString();
        FilePath = in.readString();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(ChineseName);
        dest.writeString(FileName);
        dest.writeString(FilePath);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<TypeFaceData> CREATOR = new Creator<TypeFaceData>() {
        @Override
        public TypeFaceData createFromParcel(Parcel in) {
            return new TypeFaceData(in);
        }

        @Override
        public TypeFaceData[] newArray(int size) {
            return new TypeFaceData[size];
        }
    };

    public String getChineseName() {
        return ChineseName;
    }

    public void setChineseName(String chineseName) {
        ChineseName = chineseName;
    }

    public String getFileName() {
        return FileName;
    }

    public void setFileName(String fileName) {
        FileName = fileName;
    }

    public String getFilePath() {
        return FilePath;
    }

    public void setFilePath(String filePath) {
        FilePath = filePath;
    }
}
